//
//  MYXVerificationIphoneController.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/11/15.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYXVerificationIphoneController.h"
#import "MYXMemberMdel.h"
#import "userinfoModel.h"
@interface MYXVerificationIphoneController ()
@property(nonatomic,strong)userinfoModel *userinfoMode;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UITextField *iphoneTextFiled;
@property (weak, nonatomic) IBOutlet UIButton *isOpenButton;

@end

@implementation MYXVerificationIphoneController
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:NO];
    
    
}

-(void)right
{
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setTitle:@"下一步" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(Submit) forControlEvents:UIControlEventTouchUpInside];
    btn.frame = CGRectMake(0, 0, 60, 44);
    UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc] initWithCustomView:btn];
    //    [self.view addSubview:btn];
    [self.navigationItem setRightBarButtonItem:cancelItem animated:NO];
    
}
-(void)Submit{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.userinfoMode =[[userinfoModel alloc]init];
    self.userinfoMode = [MYXMemberMdel sharedInstance].userinfo;
    [self setpUI];
}

-(void)setpUI{
    [self right];
    self.titleLabel.text = [NSString stringWithFormat:@"更换手机号后，下次登录可使用新手机号登录。当前手机号：%@",self.userinfoMode.phone];
    
}
- (IBAction)openButt:(UIButton *)sender {
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
